working magic box, still far from ideal