add copy
bugfixes for ravi