bug fix and crud redirect