add logging
change cwd