input ports now keep track of connected sources