added triggerCloseWith option