WIP: see if this fixes undef in linux