updating plugin structure