added stuff to navigate properly between directories