fix filename handling
stop returning from the add() loop, fixes #3