made it work with some black magic