added support for USE_SHELL