add script to checkout before a particular date
make the foreach command more verbose