several fixes, missing files etc - all related to Hibernate support