fixed some issues with the '|' character - thx Ivandrofly