cap and cap_resources