changed main to plugin