added dpath and stdout support
added dpath and stdout support