massive amount of refactorings to reduce technical dept.