update curry to amd style