added support for noninteractiveshells