added protection against multiple processing