removed a bunch of unneeded code, (i now understand the plugin a bit better and it seems not needed because most of input data is "static") and there for don't need to be checked.