ssh improving... handling errors