add option to enforce length of copy operation.