update g command to conform to new interface
aesthetical fix
fix external interface interface
work in progress