local and remote execution functions