source of error was simple: dir was being modified during calculations.  Synchronized version works :D  do i get a prized now?