creating tools module to factor out several features