skip nonexistent files and fix compiler warnings