added extract_filename