still working on getting pwd working