extracting get-output into a separate file