updated lib and added initial plugin class