added base plugin and remove write function form template plug.
mrge