prompt mode fix and update