fix hashing and status codes