add port convertion to int