add get, post functionality