Generic components

    $profile-name eq "sec"

is always false here because we are in the else clause