changes to support POST parameters