setup cap etc