easier to unit test it here because of the file mapping but could absolutely be moved into test (and probably should otherwise we ship this file for no reason I guess)