added cap and whenever
cap setup