copy-to task fixed and build working properly