move gservice to its own package