initial work on capturing output