signal handler must be public to be accessable as callback

see #19