warning message for jai
refactored jai for confirm and log some stuff