moving file handler to end of file