work on interactive mode