moved from [door](https://github.com/statgarten/door/issues/104)
moved from door