adjusting $CAPDIR