adding advanced dependency stacking