sync with @6625f27efd4aacd181855cde91fd082a63759126; only output visible lines