perhaps name this `process` and place it into its own npm module?