exposing purity option in wrapper