support AMD & CMD & node