fixed a Bug inside query op check
done some refactoring - still not finished
refactoring of operation info.
The info is now a dict and type_bmch gets the env as new arg
no tests added