rename init to initloop