solve a bug when registering/de-registering proc to/from daemon
add bunch of fixes, now hamster can work in a single node environment