created the initial plugin functions