engine namespace providing most of the handling logic