fix header method
closure instead of cmd