cap script based on eric's latest
Merge pull request #1 from evilensky/add_cap_script

cap script based on eric's latest