allow providing None client