make blocksizes automatic