fix scoping for fastcopy()