changes to bsp generation