set up subject api