update source for Android compatibility