added dump command and fixed link when theres no  with link argument