chaning to support get or post