added support for text parameter type