added special handling for old files