support list of application connectors

This still doesn't completely work -- in particular only the first
thread will log requests to standard output.
move function to the private area