disable rwlock for debugging (make it function as a mutex)
some debuggery