move lib code