modify for android compile