added support for listing files non-blocking