just copy from mailgun/gotools-api