journal mode set and checked at application level