making progress with conditions and file spitting