added support for non-file form params