added a fix for \n