skeleton for the respects ownership analysis and various bug fixes