added course avail api