modified to directly call binary