getting tasks from moodle