add tool for generating code