added a flag check for init.