1. abstract common methods to utility.py