res_2b is now better (and more modular) than ever. naïve stab at inclusion in 3b