detach-root login and refactor core process event log