added connect flags, but pasword, username, will_* still don't work yet