import monacoin patch from https://gist.github.com/ohac/8121729