bugfix: use filename with extension