add get/post method