fix alternative name matching
add debugging files for alternative name matching