fixed asynctask and compilation errors