added setstatus functions