added logging to segd library