combination of weird stuff to get things working