added redundency to startup script so it try to reconnect whenever there is an error
merging