changed sed delimiters from / to ~