modified dotemacs 9Mar2014