pass values into afterDestroy callbacks