fix resumable to be AMD style