dependencies on instances, fix #44