adding magic boxes that adriano worked on with thierry