awful hack to get around https://gist.github.com/blackmad/5208521