some core changes as well as additions to opencv plugin