changes related to curl POST issues