end runs local master remote slave