added/optimized restful functions