basic locking implemented
deadlocking implemented