added init logger to prevent crash