refactor locking
Release 0.1.1