refactoring plus unit tests
updated pipeline client version