added get_weekday to _util