added a "sync" flag in routes definition