add comments rearrange startup sequence