retry loop for init