The gatekeeper in the middle ages