add hook for running at remote system