Async rules and bunch of fixes

#1