to add memshare and output_debug