temp_v2 is most updated version; proof of concept code