a copie of https://bitbucket.org/boblefrag/mustachebox