adding script for course api