callback returns filename as well