trying to make hibernate right