modify shadow box and enable server multi thread