minor modifictions for new post route and bug fix