very dirty but works - this is the spike for proof of concept