added support for ios platform