friend library fix