factor fixtures sync into fixtures lib