pry for errors and debugging