Well that's going to be a problem. When u say magic box, I hear, "I don't know what it is, and I don't want to deal with it." and nobody here is going to be able to look at it it from a few pictures and go, "a-ha, that's how you fix it."
If I was your friend, would want to come over with few of my testing tools, do a house walk-over, and try to understand the original intention, asking you tons of question blah-blah, but trying to do this with a few web posts? not gonna happen.
Here, can give you enough to untuck you from stuff YOU WANT to do, but is mostly on you, and if you are uncomfortable with it, not going any where.