adding stdio snippet