fixes for the public and private ports