finally fixed the fucking gatekeeper script for reals