address concerns from PR

* removed use of `self` in favor of `self()`
* obtained Pid before reloading the module