added custom rest module for clearer errors
added custom rest module for clearer errors