Revert "rearranging statements from dsh.h to dsh.c"

This reverts commit 0612e796f721abddd978c99f6947527cf28e03b7.
rearranged statements from dsh.h to dsh.c