deal with empty files