move Command stuff to types
server/globals: update for type moves