add get/post methods.