fixed random new line and report pid