fix 84 and fix #85 depend on managedResources and sourceManaged fix