bugfixes and starttime-to-rank improvements