added import os and port info to run