refactor init,devinit;fix blanks