work on engine datastructure.

Signed-off-by: Chris Sanders <zidane@outlook.com>