adapted to bin file and new naming convention