added fix for post to restapi