move logger outside from engine
change key comparer