check filemodes