initial import from bb project