Impoved Logging and fixed Issue with empty resonse