factor out a bit of date magic
move track selection to model