get plugin structure right