pry added, api fixed