fixed bug in the async method when using the done in sync code. Also worked on the filters implementation.