updated logging to be a bit better