added missing license header
refactored dump command