fixed up text_install for modes, will do all flags eventually