You really need to place things on multiple lines instead of using pipes to seperate things. Makes it more readable and easier to debug...
Oh, and it's spelled "messages", not "message's" ;_)