bug fixes for Get/Post