avoiding resolution errors when working with phantom classes