Revert "don't use nam"

This reverts commit 53789b58f13a11c84c7c60f466bffed4c6bdf622.