fixes to cmpgntraday script