add some caching to try and rid of stack trace error
add pry
fix stack trace issue, pretty dirty..