debug moved to using std::string, cleaned up some using issues.