modified the loader to detect windows phone devices