splitting out the utils methods to a library