refactored gsr webapi