interactive mode now works properly