wrong script name
non-blocking socket to timeout the connect call

introduced lots of new bugs unfortunately. fix later