consolidated commonly used methods into new utils file