add log - todo valgring
clear warnings - todo valgring
add delete