used pb.utils to improve the code
moved all sample code to the default sample plugin