minor changes to opencv stuff