getting task from server