box closures, add missing prototypes