needs to be defined in __init__ (```self.port =None``` is enough)