generate code toolkit