added a parameter for interactive shell mode