changed init and close to ID mode