added prepare() into plugin APIs, and removed redundant logs