changed maps; added path scoped methods; added cleanup methods;
added cscope helper function; changed more maps over to use functions;