pass the whole admin object