add libraries, partly fix jpa problem