build fix: update dependencies, refactor used classes and cleanup pom