track the saving state so before callbacks dont loop