see also this file in #938 the check for empty filename, maybe redo this chance on top of that PR?