better way to catch output