debug and log enhence