some small changes and first test for lib