rename functioin _scale() to scale() and moved pp.lua to module (this time for real)