reapply_sid missing here aswell