fix buffer reply for direntry
remove certain functions for now