added DEBUG and LOG - not used yet