additions from Mike and Bens  branch