added threadded tee output, removing boost headers