real fix for all_courses (still commented out)