improve logging
improves logging, logic for paths