moved from DRE (https://github.com/amida-tech/DRE)