common classes used by orm and other modules