added new rest funcitons