added asynctask and associated permissions