updating REST module
some small enhancements and fixes