tried to add qfail functionality
quail functionality