flow position controller with parameters, not tested yet