added some log stuff!