fix issues with port