fix directory location stuff