implement MODBUILD and MODPREDICT commands