fix skim code, add condor script to run skim