added some directory stuff