add support for generating private urls