placed assert macro where it belongs #49
only control_algo can users can change currently used algo