added debug to manager and fixed joins and field params