mega hax, but seems to work