working with hooks, log levels, scripts