now compatible AMD and node