cleanup plugin init a little