moved src into lib