fixed kludgy interactive mode. will do properly once I have the time