make extend do the work of making render_json class-level