inlined ping handler, and changed nano to use thread pool, configurable in size
added thread size argument