api for boxes
more api stuff, box class