file pathe issues and port output fix