some basic functions added
hibernate added???