fixing commit bug, auto-connect