$rule->admin etc to $rule->$accessLevel, minor bug fixes