declaration of basic functions of new API
moved member clean to data.cpp