add platform specific function which may override invoked command