added warnAfter option to allow adding a orange border on old data
fixed NPE when there are no measurements