moved configuration block into if

.. to prevent error while importing when this property was not set