get moodle from vars