check that dem is specified before allowing a run