modified patient prescription and mainControl