add debug messages for schematics and facades (close #2124), improve schematic autodetection