added a new command to find the next message matching a condition
added basic support for complex conditions