start of interactive mode