changed some printlns to Log.e and Log.i