code needed in multiple projects