fixing loadFile-routine in IO