fixed bugs
add support for android and ios differently