Change plugins var to a dict