modified headers and replace ereg_replace