spec refactoring and began logging spec