minor code style improvements for custom rest module