make expire option work