adding command stuff to globals