Universal backend: implement boxes