fixed some directory stuff