nothing's special
fixing bugs
add sigchld handler and fixing some memory leaks