added packages to gsr and refactored rest api accordingly