logging cleaned up and string methods