ad a sinal handler for sigpipe
add two missing classes