- fix pretty print. need to print resolved references.