added logging to the process side too