[feature/lua] let other parts of the program set the lua control functions