updated get and post