initial support for interactive mode