some utility code shared by multiple projects