UNTESTED: haystack setup for record