improved plugin configuration method