[sr-dev] crash at startup if flag is not defined