added some model manipulation so nearly as per @mung prototype