separating libs from core and introducing bbmodel