trying more frequent compressions
added disconnect functionality