refactor code one process by web entity + restart where it stoped