use the mkdir wrapper in all functions
more atomic warnings about adjacency counts