moved src files to src/lib