removed read lock to prevent deadlock