by default, read first and last samples when not specified