seed script now handles labs and pis more correctly