clarify process structure
proper logging
clean shutdown
make debug logging optional