pnmessage should take argument