renamed getAdminFlag to getType