might have found a more sane way