functions to deal with subject and config stuff