register plugins only once

fixes #218