diff --git a/src/local_dc/local_dc_utils.h b/src/local_dc/local_dc_utils.h
index 2ee27cd505641c1a25264d40ddd9c55e17c2a364..97ecde71345548b16250c441a0130b4f14584edc 100644
--- a/src/local_dc/local_dc_utils.h
+++ b/src/local_dc/local_dc_utils.h
@@ -34,11 +34,11 @@ extract_models_from_table( FILE* f, char* dest, int size )
     while ( fgets( buffer, sizeof( buffer ), f ) != NULL )
     {
         buffer[ sizeof( buffer ) - 1 ] = '\0';
-        /* get rid of trailing \n */
+        /* end the line at \n or comments */
         cur = buffer;
         while ( *cur )
         {
-            if ( *cur == '\n' )
+            if ( *cur == '\n' || *cur == ';' || *cur == '#' )
             {
                 *cur = '\0';
                 break;