make parts of stage config lazy load