add debugging to manager