modified NewManager to match the new function signature