making pry work with spring