add options support to copy from