Index: /trunk/BNC/src/bncephuser.cpp
===================================================================
--- /trunk/BNC/src/bncephuser.cpp	(revision 8658)
+++ /trunk/BNC/src/bncephuser.cpp	(revision 8659)
@@ -152,4 +152,10 @@
 
   const t_eph* ephOld = ephLast(prn);
+
+  if (ephOld &&
+      (ephOld->checkState() == t_eph::bad ||
+       ephOld->checkState() == t_eph::outdated)) {
+    ephOld = 0;
+  }
 
   if ((ephOld == 0 || newEph->isNewerThan(ephOld)) &&
@@ -220,5 +226,5 @@
       return;
     }
-    else if (eph->type() == t_eph::GLONASS && timeDiff > 1 * 3600) { // updated every 30 minutes
+    else if (eph->type() == t_eph::GLONASS && timeDiff > 2 * 3600) { // updated every 30 minutes
       eph->setCheckState(t_eph::outdated);
       return;
@@ -266,5 +272,5 @@
       return;
     }
-    else if (eph->type() == t_eph::GLONASS && dt > 1*3600) {
+    else if (eph->type() == t_eph::GLONASS && dt > 2*3600) {
       ephL->setCheckState(t_eph::outdated);
       return;
Index: /trunk/BNC/src/bncrinex.cpp
===================================================================
--- /trunk/BNC/src/bncrinex.cpp	(revision 8658)
+++ /trunk/BNC/src/bncrinex.cpp	(revision 8659)
@@ -170,12 +170,8 @@
   }
   if (!sklDir.isEmpty() && sklDir != "none") {
-    QString mtp;
-    if (_rnxV3) {
-      mtp = _mountPoint.path().mid(1,9).toUpper() + ".skl";
-    }
-    else {
-      mtp = _mountPoint.path().mid(1,4).toLower() + ".skl";
-    }
-    QUrl url(sklDir + "/" + mtp);
+    QString staID;
+    int stIdLength = _mountPoint.path().length()-2;
+    staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
+    QUrl url(sklDir  + staID);
     if (url.port() == -1) {
       if (sklDir.contains("https", Qt::CaseInsensitive)) {
@@ -335,11 +331,5 @@
 
   int statIDlength = _statID.size() -1;
-  QString ID;
-  if (_rnxV3) {
-    ID = _statID.left(9);
-  }
-  else {
-    ID = _statID.left(4);
-  }
+  QString ID = _statID.left(statIDlength);
   ID = ID.toUpper();
 
Index: /trunk/BNC/src/rinex/rnxobsfile.cpp
===================================================================
--- /trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 8658)
+++ /trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 8659)
@@ -96,10 +96,5 @@
     }
     else if (key == "MARKER NAME") {
-      if (_version < 3.0) {
-        _markerName = line.mid(0,4).trimmed();
-      }
-      else {
-        _markerName = line.mid(0,9).trimmed();
-      }
+      _markerName = value;
     }
     else if (key == "MARKER TYPE") {
@@ -613,9 +608,13 @@
     *stream << itCmnt.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
   }
-
+  QString markerName = _markerName.left(9);
+  if (_version < 3.0) {
+    markerName = _markerName.left(4);
+  }
   *stream << QString("%1")
-    .arg(_markerName, -60)
+    .arg(markerName, -60)
     .leftJustified(60)
            << "MARKER NAME\n";
+
 
   if (!_markerNumber.isEmpty()) {
