core code auto reformat