added logging

added delete