got rmdir working, further testing required