run on directory or single file.bin