add a tool to create codes