codebook, cleaned up paths in r