got rid of copy on writing, adding debugging functions
DTS tweaking, build script