make interface compatible with trait.