make demote/promote safe