Add logs, work dir vs result dir, fix env issues