close #3: refactored common functions down to utilities module