nucleus bsp code