add AMD, node support.