format activity package's codes