added exceptions, changed connection window