added kopen and early file manipulation