start of cap config