started putting in global name for directory, but not using it yet