cleaning up
root as constant
new log engine