adding better output to debug