factor out box and box_url