added new rest function
bugfix