added experimental interactive mode