GENERATE_METACODE() partially implemented