added possibility to use any  s-block size