added check for an interactive session