removed boost foreach include
'correct' main
create connections
a bit of this, a bit of that