copy for auto detect