added the perapera chrome plugin code as reference