added support for POSTed forms