basic helper method for injecting custom vars