enhanced program map.  made dicts global.