prevent echoing the file name
save/restore cursorposition correctly