add function for dconsole use