add cli options for length and offset