write synchronously for now and update collections less frequently
fixed bug in connect_multiple