minor changes

improved POST request handling