add plug for generate code