fix logger and scope for directory