outputs header in selected dir