added asynctask and user permissions