added better interface to getd
added better interface to getd