format tool package's codes