added attachment plugin support