code updates for multialgo