fixes time issue adds logger