initial commit - it works, although not lockless yet