removed unnecessary files and refactored to reduced test case. this demonstrates the problem.