added long format output to c script