changed version number; changed main value
improved reconnect code; fixed problem with cache