plugin is almost done except pdf