added a failsafe and role manager backup and restore
