error messages. TODO: last window not with forward, 2nd last not immediately with forward (except on error). Check if filenamesfunction works