mod to work with https://github.com/pry/pry/commit/2c60f93b2d97ce7f9e7c7b300c21fdf734c40d92 not tested