assure port is int