local sync and stuff