bunch of hacks trying to get it to work for me