restoring connection if it was lost, and some other improvements
bumped version to 1.3.2