improvements to bob in scala