script changes from work 5/6/14 see diff