cap script based on eric's latest