first commit of new control algorithm