binary readAllFiles support and other bugfixes