fixes in File behavior