mod. start listeners outside of main block.  this block is skipped when using api.wsgi as an entry point.