move lib assignment back to each nim file