added support for usingpersistence role