FIX: added protection against malformed configurations