added headers on direct output