added 'global' flag to sed search/replace command