tidy up console logging