beginning plugin init and basic functions