more file gen bugs ..