add wrapper functions for get and post