interactive mode functional