tee implementation...