added existing log detection