fix filenam problems