added support for input only