Solve the problem with node import
getting compare attrs to work