make it posible to start plugin in closed state