big refactoring, finished all deployment methods, refactored them, added comparators and created util package for them