added ios support stuff