prepare for remote commit