inspired by https://github.com/linkedin/sysops-api