implemented methods checkSync, quantize
readline