added support for filesystem to event-loop