move plugins stuff to common