added: make the portconnector only process connections based on the type of event that is received
fixed: no need to make this a member variable