spec boilerplate and fix for multiple connection support