use Log.e instead of Log.d, where appropriate.