bug fixes. changed sed delimitter.