got some basic code for that customGate stuff