added some port-related jack functions