tidying generic file spec