add debug info cc key
fix bugs in base routines
add insert ops and tests