added port and prefix as vars