improving output and environment capture