changed back to global write locks for plugin commands #367