this is probably not how we want to log .. but it was a quick solution