trying to get dynamic port and name