trying to fix bug in getWorkspaceMap
changed frome returning map, to returning 2 lists since you can't key off an object