adding conversion of port to int and check for pressence