add check for files