move pp into boot.rb
improve test