copy/paste state now works