move interactive function init out of main loop