adds few more functions to file io