logging with scripts