clean up: remove unused logic
simplify initialize,analyze logic similar to LocalEngine