update tbox and modify config for mac