Improving copy function
Merge branch 'copy_as' of github.com:cookiekiller/arcavias-core into copy_as