index courseid
use config function to retrieve vals