bug fixes

mock library