slightly change asyncbox function typedef