updated gatekeeper.sh