added card/sink/source profile/port switching functions