addign some debugging