added securit-check (ip-based) to sync between master n slave, fixes #1 fixes #2 fixes #3