fixes #12

Added support for asynchronous rules.