shared models option added for rest and ws predict