add support for check option into setcwd method
redesign block size autodetection, now the detected size has a session wide scope