add init method, clean up
rename `inject` to `process`.