fix logger
add logger .. but the option part does not work anymore this will be my next subject