code cleanup, put all global stuff in a 'gent' namespace