finally got the porthole working! the problem was vague variable names/references.