pull out path variable