add ability to specify a path to a cookie file. closes #6