added 'pad_missing_samples' but haven't tested yet