adding streams for std in/out/err
remove unused variables
thread safe log suppression