added some directory functions -- removed some binary functions