added isAdmin flag