de-magic number
sync rotation
tick loop for server