initial code

added experimental code which is just a shameless copy of the original
plugin