added permissions for internet and writing to sdcard