add segment size detection, honor seed day, improve output