get_inst returns a reference instead of a pointer