added invisible package loader
handle more conditions, removed some whitespace

some of the conditionals didn't handle all possible inputs, and would fail without an informative error.
fix for package loader
treaty updates