replace with usage of https://github.com/daveray/dorothy