fixed issues with loggers and with cwd