better extraction of filename