Fixed the nil options problem. Note to self: assigning a package scope variable in a function with := will actually create a new variable, which will leave the package level one nil. Duh.