removed legacy gates lib module