moving some functionality into a utils file