more hacking got it working