updated event handler
add thread module
add Network module for windows platform