include node_modules/tmp which was formerly excluded
refactor graph message enumeration and state construction functions