fixed moodle
other minor fixes