fixed prompt debug and d so that it actually passes argument to right function