implemented __pairs for wrappers