updating pt.rb to use yaml config + slop + setup function