diagnosing a weird problem
working on putting everything into a framework