fixed bugs in creat and lookup.  not fully functional yet, but very close