main: add set fucn for setting the sync mechanism
config: add menu for choosing the sync mechanism