bugfix: no memory allocated for file name; added some logging