get and post wrapper