connections per input. fixes #320