add memory debugging feature
apply the CSV design change to BC api