fix behaviour of projects that have no atf of their own, only proxies
fix sloppy allocation--need to keep growing buffer until it's big enough