add some utils
some code for handle get and post