attempt to make the new code not segfault