using private functions for get and post
adding function for post and get

Since EE already do this, maybe should be good to do it too.