resolves #30
returning cmd from shortcut function so it can be concatted and ran once