add check for empty arg header in ham.cc