check plugins in separate function