fixed logger, use strict