some secretary work, openfile() removed