improve jc extract script