updating usage
adding extra handling for dmgmt
check run comamnd correctly
catch out of index for submodules