first canidate for master branch

adding syncing config function