moved sync part
dev mode