some BSB optimizations