added some more defaults and POST param handling