almost there!  just need to resolve EMFILE error