fix wrapper instanciation