separate ports from script