modified get and post