added support for mobile devices