add awp copy function.