add maintainance mode
implement better queue syncing logic