added removeAllRoles func to lib