add flag for init has run