fixes and added rete exchange