added if statement for production vs development wicked pdf