fixed logger but with lazy initialize