introduce 'domain' for stack definition (non backward compatible)
fix stack issue for clone