adding fn for global cmds