merge node attributes under `attributes` for easier access