check for invalid global variables, Format always returns xml format without else, fail if invalid command