move authorities from private to local variables, modify regex for courses search