fix destination and logging