update paths.
graceful signal handling.