adding support for InputStream action parameter