moar testing
proper debugging allowed me to make it work