added tail plugin customization
merged tail_plugin changes
added tail plugin customization
remerged tail_plugin branch