remove unused code and pry requirements