added pry to debug