removed sed -r, now cross platform (gnu & bsd)