redesigned oneshot/milestone/timeos/timems and added dynamic resizing