fix for filename parsing