added support for more boxes