refactored manager to have a separate config map and queue map
named private functions with '_', and other code cleanups