v.0.3: first/last/random mode