handle phantom classes more gracefully