working on the main plugin file