adding logs and fixing build on android.