move src to lib