apply changes to work with nonstandard port