added registeradmin and backgroundjob tasks to api