added support for ios devices