refactor to separate plugin code nonsense