bugfix to cart_res factory and spec