updated for compatibility with new desr versions