filling in missing methods in the generated code