moved src to lib