major refactoring. supporting asynchronous filesystem observer.