move copy engine to lib/bsv