adding ifCurrentFromConfig